package com.googlecode.bipol.war.services;

import com.googlecode.bip.entity.IQuestion;

public interface QuestionManager {
	/**
	 * Create a new question for a topic
	 * The question will be created with the idLocal of the topic
	 * 
	 * @param topicId The id of the topic the question should be added
	 * @param name The name of the question 
	 * @param idLocal Code id for localization
	 * @param description The description of the question
	 * @param minValue The minimum value the answer can take
	 * @param maxValue The maximum value the answer can take
	 * @param defaultValue The default value of the answer
	 * @return
	 * @throws ServiceException
	 */
	public IQuestion createQuestion(
			int topicId, 
			String name, String description, String idLocal,
			int minValue, int maxValue, int defaultValue) throws ServiceException;
	
}
